/*
 * @Author: maomao
 * @Date: 2021-03-29 13:37:00
 * @Description: 
 * @FilePath: \clientapp\src\utils\local-util.ts
 */
import "devextreme/localization/globalize/number";
import "devextreme/localization/globalize/date";
import "devextreme/localization/globalize/currency";
import "devextreme/localization/globalize/message";
 
// Dictionaries for German and Russian languages
const zhMessages =require("devextreme/localization/messages/zh.json");
// Common and language-specific CLDR JSONs
const supplemental=require('devextreme-cldr-data/supplemental.json');
const zhCldrData =require( "devextreme-cldr-data/zh.json");
 
import Globalize from "globalize";
 

// ===== Vue ======
export default {
    created() {
        Globalize.load(
            supplemental, zhCldrData
        );
         
        Globalize.loadMessages(zhMessages);
        Globalize.locale(navigator.language);
    }
}
 
